import Cart from '@/views/cart.vue'
import Cla from '@/views/cla.vue'
import Detail from '@/views/detail.vue'
import Goods from '@/views/goods.vue'
import Shdz from '@/views/shdz.vue'
import Tjdz from '@/views/tjdz.vue'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/cla' },
    {path: '/cla',name: 'cla',component: Cla},
    {path: '/cart',name: 'cart',component: Cart},
    {path: '/shdz',name: 'shdz',component: Shdz},
    {path: '/tjdz',name: 'tjdz',component: Tjdz},
    {path: '/goods/:query',name: 'goods',component: Goods},
    {path: '/detail/:goods_id',name: 'detail',component: Detail},
  ],
})

export default router
